<?php

/**
 * 应用设置
 * 
 * @author ShuangYa
 * @package Blog
 * @category Config
 * @link http://www.sylingd.com/
 * @copyright Copyright (c) 2015 ShuangYa
 * @license http://lab.sylingd.com/go.php?name=blog&type=license
 */

return [
	'appName' => 'SYBlog',
	//调试模式
	'debug' => TRUE,
	//上传限制
	'notupload' => [ 'inc', 'php', 'php3', 'php4', 'asp', 'aspx', 'asa', 'ashx', 'jsp'],
	'dir' => '../application/',
	//编码
	'charset' => 'utf-8',
	//默认语言
	'language' => 'zh-CN',
	//加密Key
	'cookieKey' => '8z3ecQdx',
	'securityKey' => 'HwlQpTYx',
	'csrf' => FALSE,
	'rewrite' => TRUE,
	'rewriteExt' => 'html',
	//自定义重写规则
	'rewriteRule' => [
		'article/view' => '@root/archives/{{id}}.html',
		'article/list' => '@root/category/{{type}}/{{val}}/{{page}}.html'
	],
	//Controller列表
	'controller' => [
		'home',
		'article',
		'admin',
		'goto',
		'feed',
		'cron'
		// 'xmlrpc',
		//'page'
	],
	//默认的Router
	'defaultRouter' => 'home/home',
	'class' => [
		'blog\libs\option' => '@app/libs/option.php',
		'blog\libs\BHtml' => '@app/libs/BHtml.php',
		'blog\libs\BMeta' => '@app/libs/BMeta.php',
		'blog\libs\BLink' => '@app/libs/BLink.php',
		'blog\libs\BArticle' => '@app/libs/BArticle.php',
		'blog\libs\MkHtml' => '@app/libs/MkHtml.php',
		'blog\libs\Sitemap' => '@app/libs/sitemap.php',
		'blog\libs\List_Action' => '@app/libs/BBase.php'
	],
	//虚拟路由表
	'alias' => [
	],
	//Cookie相关
	'cookie' => [
		'prefix' => '',
		'expire' => 7200,
		'path' => '@app/',
		'domain' => $_SERVER['HTTP_HOST']
	],
	'mysql' => [
		'host' => '127.0.0.1',
		'port' => '3306',
		'user' => 'root',
		'password' => 'root',
		'name' => 'blog',
		'prefix' => 'bg_'
	]
];